<?php

/**
 * @author shuang
 * @date 2016-11-3 11:51:43
 */
use yii\helpers\Url;
use yii\helpers\ArrayHelper;
$userbase = frontendm\models\WB_UserProfile::getInfo(Yii::$app->user->id);
?>
<div class="content native-scroll">
    <div class="list-block">
        <ul>
            <li class="item-content">
                <div class="item-inner">
                    <div class="item-title">账户余额</div>
                    <div class="item-after">
                        <span class="clr-green"><?php echo Yii::$app->formatter->asDecimal(ArrayHelper::getValue($userbase, "amount")); ?></span> 
                        <span class="clr-lightgray">元</span>
                    </div>
                </div>
            </li>
            <li class="item-content">
                <div class="item-inner">
                    <div class="item-title">下线提成</div>
                    <div class="item-after">
                        <span class="clr-green"><?php echo Yii::$app->formatter->asDecimal(ArrayHelper::getValue($userbase, "amount")); ?></span> 
                        <span class="clr-lightgray">元</span>
                    </div>
                </div>
            </li>
            <li class="item-content">
                <div class="item-inner">
                    <div class="item-title">提现总额<span style="color:red">平台保留近两月记录</span></div>
                    <div class="item-after">
                        <span class="clr-green"><?php echo Yii::$app->formatter->asDecimal(ArrayHelper::getValue($userbase, "payamount")); ?></span> 
                        <span class="clr-lightgray">元</span>
                    </div>
                </div>
            </li>
            <li class="item-content">
                <div class="item-inner">
                    <div class="item-title">下线提成总额</div>
                    <div class="item-after">
                        <span class="clr-green"><?php echo Yii::$app->formatter->asDecimal(ArrayHelper::getValue($userbase, "offline_amount")); ?></span> 
                        <span class="clr-lightgray">元</span>
                    </div>
                </div>
            </li>
            <li class="item-content">
                <div class="item-inner">
                    <div class="item-title">线下人数</div>
                    <div class="item-after"><span class="badge badge-red"><?php echo Yii::$app->formatter->asInteger(ArrayHelper::getValue($userbase, "usercount")); ?></span></div>
                </div>
            </li>
            <li class="item-content">
                <div class="item-inner">
                    <div class="item-title">推广链接</div>
                    <div class="item-after"><?php echo Url::toRoute(["site/signup", "id" => Yii::$app->user->identity->my_code], true); ?></div>
                </div>
            </li>
        </ul>
    </div>
    <div class="content-block">
        <a href="javascript:;" data-no-cache="true" class="button button-fill button-big">
            <span class="iconfont i-squa-check"></span>申请提现
        </a>
    </div>
    <div class="content-block center-block">
        提现无手续费，如提现金额与实际收到金额有出入为所做任务有不合格被扣佣金或者推荐的下线有做的不合格导致
    </div>
</div>